﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.Extensions.DependencyInjection;

namespace Bootstrap5.Test
{
    public class TestFixture
    {
        IServiceProvider _provider;
        public TestFixture()
        {
            var service = new ServiceCollection();
            service.AddBootstrap5();
            _provider = service.BuildServiceProvider();
        }

        protected T GetService<T>() => _provider.GetService<T>();
    }
}
